package com.txts.road.app.vehicle.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 版本更新表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:48
 */
@Getter
@Setter
@Schema(description = "版本更新表单对象")
public class VehicleDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "车辆ID")
    @NotNull(message = "车辆ID不能为空")
    private Long id;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "车型")
    @Size(max=50, message="车型长度不能超过50个字符")
    private String vehicleType;

    @Schema(description = "车牌号")
    @Size(max=20, message="车牌号长度不能超过20个字符")
    private String licensePlate;

    @Schema(description = "品牌")
    @Size(max=50, message="品牌长度不能超过50个字符")
    private String brand;

    @Schema(description = "型号")
    @Size(max=50, message="型号长度不能超过50个字符")
    private String model;

    @Schema(description = "颜色")
    @Size(max=20, message="颜色长度不能超过20个字符")
    private String color;

    @Schema(description = "是否默认车辆：0-否，1-是")
    private Integer isDefault;


}
